namespace RFIDOdata.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("Product")]
    public partial class Product
    {
        public Product()
        {
            Containers = new HashSet<Container>();
            ContainerBoxes = new HashSet<ContainerBox>();
            ContainerBoxes1 = new HashSet<ContainerBox>();
            ProductMoves = new HashSet<ProductMove>();
        }

        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public int ProductNo { get; set; }

        [StringLength(20)]
        public string ProductName { get; set; }

        [Column(TypeName = "date")]
        public DateTime? ProductInDate { get; set; }

        [Column(TypeName = "date")]
        public DateTime? ProductOutDate { get; set; }

        public virtual ICollection<Container> Containers { get; set; }

        public virtual ICollection<ContainerBox> ContainerBoxes { get; set; }

        public virtual ICollection<ContainerBox> ContainerBoxes1 { get; set; }

        public virtual ICollection<ProductMove> ProductMoves { get; set; }
    }
}
